<?php
$this->breadcrumbs=array(
	Yii::t('cms', 'Payments'),
);
?>
<h1><?php  echo Yii::t('cms', 'Payments'); ?></h1>

<?php $this->widget('CDataFilterWidget',array(
		'filters'=>$filters,
		//'ajaxMode'=>true,
		//'updateSelector'=>'#yw0',
		//'formAction'=>'/user/index',
		'formMethod'=>'get'
)); ?>

<?php $this->widget('application.components.MyGridView', array(
	'dataProvider'=>$dataProvider,
	'columns'=>array(
		array(
			'name'=>'user_id',
			'value'=>'$data->user->contract',
		),
		array(
			'name'=>Yii::t('payment', 'User Name'),
			'value'=>'$data->user->username',
		),
		'payment_date',
		'payment_sum',
		'faktura_number',
		array(
			'name'=>'admin_id',
			'value'=>'$data->admin->username',
		),
		'comment',
		/*
		'admin_ip',
		'active',
		'change_time',
		*/
		array(
			'class'=>'CButtonColumn',
			'viewButtonImageUrl'=>'/css/ico/view.png',
			'updateButtonImageUrl'=>'/css/ico/edit.png',
			'deleteButtonImageUrl'=>'/css/ico/del.png',
		),
	),
)); ?>
